package com.kaifa.bean;

public class DogBean extends CatBean{
    public String voice;

    public String getVoice() {
        return voice;
    }

    public void setVoice(String voice) {
        this.voice = voice;
    }

    public String voff(){
        setName("小花");
        setAge(2);
        setVoice("汪汪");
        return "姓名："+getName()+" 年龄："+getAge()+" 叫声："+getVoice();
    }



    public static void main(String[] args) {
        DogBean db = new DogBean();
        String str = db.voff();
        System.out.println(str);


    }


}
